Skip to content

BLE: removed double delete of characteristics #3521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 30, 2020

Conversation

rng0x17
Copy link
Contributor

@rng0x17 rng0x17 commented Nov 27, 2019

Calling the destructor or disconnect of BLEClient causes a heap corruption.

This is due of the destructor of the BLERemoteService:
The removeCharacteristics() method tries to delete the same characteristic twice, one time per map where its pointer is stored in.

@rng0x17 rng0x17 changed the title removed double delete of characteristics BLE: removed double delete of characteristics Nov 27, 2019
@TheNitek
Copy link
Contributor

Any chance to get this merged? It's currently impossible to "delete" a BLEClient, so memory leaks are unavoidable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants